/* ======使用注明=======
 //#import "SEGWinningPublicDetailView.h"
 //@property (nonatomic, strong)SEGWinningPublicDetailView *varWinningPublicDetailView; <#注释#>
 // 控件数据模型创建
 SEGWinningPublicDetailViewModel *data = [[SEGWinningPublicDetailViewModel alloc]init];
 // 控件内容布局计算
 SEGWinningPublicDetailViewLayout *layout = [[SEGWinningPublicDetailViewLayout alloc]initWithData:data type:SEGEnumWinningPublicDetailViewType_NO];
 // 内容布局填充到视图
 SEGWinningPublicDetailView *varWinningPublicDetailView = [[SEGWinningPublicDetailView alloc]initWithFrame:CGRectZero];
 //varWinningPublicDetailView.delegate = self;
 varWinningPublicDetailView.left = 0;
 varWinningPublicDetailView.top = 0;
 varWinningPublicDetailView.width = kScreenWidth;
 varWinningPublicDetailView.height = varWinningPublicDetailView.layout.totalHeight;
 [varWinningPublicDetailView setWithLayout:layout];
 
 */
#import <UIKit/UIKit.h>
#define kWinningPublicDetailViewHeight 35     // WinningPublicDetailView的高度
#import <WebKit/WebKit.h>

typedef NS_ENUM(NSUInteger, SEGEnumWinningPublicDetailViewType) {
    SEGEnumWinningPublicDetailViewType_NO = 0, /*默认*/
};

@protocol SEGprotocolWinningPublicDetailViewDelegate <NSObject>
@optional
-(void)SEGprotocoldetailsLabel:(SEGLabel*)sender;
- (void)changeHeightTo:(CGFloat)height;

@end

@interface SEGWinningPublicDetailViewModel : NSObject
@property (nonatomic, copy) NSString *detailsText; // <#注释#>
@property (nonatomic, copy) NSString *picUrlString; // <#注释#>
@end

@interface SEGWinningPublicDetailViewLayout : NSObject
@property (nonatomic, assign,readonly) CGFloat totalHeight;//控件总高度
@property (nonatomic, assign,readonly) SEGEnumWinningPublicDetailViewType type;//控件类型
@property (nonatomic, strong,readonly)SEGWinningPublicDetailViewModel *data;
- (instancetype)initWithData:(SEGWinningPublicDetailViewModel *)data type:(SEGEnumWinningPublicDetailViewType)type;
-(void)segWinningPublicDetailViewLayout;

@property (nonatomic, assign) CGFloat detailsLabelHeight;//detailsLabel 高度
@property (nonatomic, strong) SEGTextLayout *detailsLabelTextLayout;//detailsLabel 富文本布局

@property (nonatomic, assign) CGFloat webViewHeight;//webView 高度

@end

@interface SEGWinningPublicDetailView : UIView <WKNavigationDelegate>
@property (nonatomic, strong,readonly)SEGWinningPublicDetailViewLayout *layout;
- (void)setWithLayout:(SEGWinningPublicDetailViewLayout *)layout;

@property (nonatomic, strong) SEGLabel *detailsLabel; // <#注释#>
//@property (nonatomic, strong) UIImageView *picView; // <#注释#>
@property (nonatomic, strong) WKWebView *webView;

@property (nonatomic, assign) id<SEGprotocolWinningPublicDetailViewDelegate> delegate;// 代理
@end
